package com.yq.ylmall.order;

import com.yq.ylmall.config.MinioConfig;
import com.yq.ylmall.service.CacheService;
import com.yq.ylmall.service.MinioService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.yq.ylmall.client.*")
@ComponentScan(
        value = "com.yq.ylmall",
        excludeFilters = @ComponentScan.Filter(
                type = FilterType.ASSIGNABLE_TYPE,
                classes = {
                        MinioService.class,
                        MinioConfig.class,
                        CacheService.class
                }))
@EnableScheduling
public class ServiceOrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceOrderApplication.class ,args) ;
    }
}
